﻿@{
    ViewData["Title"] = "Add";
    Layout = null;
}

<link rel="stylesheet" href="~/layui/css/layui.css">
@*引用*@
<script src="~/Scripts/jquery-3.4.1.min.js"></script>
<script src="~/layer/Model/appsettings.js"></script>
<script src="~/layui/layui.js"></script>


<div style="width:800px">
    <form class="layui-form" action="/Accident/AddEf">
        <div class="layui-form-item">
            <label class="layui-form-label">事故标题：</label>
            <div class="layui-input-block">
                <input type="text" name="Title" required lay-verify="required" placeholder="请输入事故标题" autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">车牌号：</label>
            <div class="layui-input-block">
                <input type="text" name="VehicleId" required lay-verify="required" placeholder="请输入车牌号" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">事发人：</label>
            <div class="layui-input-block">
                <input type="text" id="Person" name="Person" required lay-verify="required" placeholder="请输入事发人" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">保险公司赔</label>
            <div class="layui-input-block">
                <input type="text" name="LostMoney" required lay-verify="required" placeholder="请输入保险公司赔偿" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">公司净损失</label>
            <div class="layui-input-block">
                <input type="text" name="Netloss" required lay-verify="required" placeholder="请输入公司净损失" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">事故描述：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入事故描" name="Describle" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">直接经济失</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入直接经济损失" name="DirectLost" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入备注" name="Remark" class="layui-textarea"></textarea>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="submit" lay-submit>立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary" onclick="tz()">返回</button>
            </div>
        </div>
    </form>
</div>

<script>
    //Demo
    layui.use('form', function () {
        var form = layui.form;
        form.render();
        //监听提交

        form.on('submit(formDemo)', function (data) {
        });
    });

    var tz = function () {
        location.href = "/Accident/Index"
    }
</script>




